package com.xucy.springboot.designmodel.behavioral.chainofresponsibility;

/**
 * @Author xucy
 * @Date 2019-07-28 15:30
 * @Description 责任链模式
 *   业务场景：一个审批环节，对一个课程的上传进行审批，一岗接着一岗,对不同的内容进行审核
 **/

public class Test {

    public static void main(String[] args) {
        Approver approver=new TitleApprover();

        Approver approver1=new VideoApprover();

        Approver approver2=new VideoApprover();

        approver.setApprover(approver1);
        approver1.setApprover(approver2);

        approver.approve();
    }
}
